package com.job.zhaokaiqiang;

/**
 * @author DELL
 * @version 1.0
 * @since 2022-07-06 16:23:53
 */
public class Student {
    //成员变量
    int yuwen;
    int shuxue;
    int yingyu;
    String name;
    //成员方法
    public void hege(int fenshu)
    {
        if(fenshu>60)
        {
            System.out.println(name+"成绩合格");
        }
        else
        {
            System.out.println(name+"成绩不合格");
        }
    }
     //无参构造
    public Student() {

    }
     //有参构造
    public Student(String name) {
        this.name = name;
    }

    public Student(int yuwen, int shuxue, int yingyu, String name) {
        this.yuwen = yuwen;
        this.shuxue = shuxue;
        this.yingyu = yingyu;
        this.name = name;
    }
}
